package org.example.flea_market_mvc.enums;

/**
 * 分类状态枚举类
 * 定义商品分类的启用/禁用状态码和描述
 */
public enum CategoryStatusEnum {
    ENABLED(1, "启用"),
    DISABLED(0, "禁用");

    private final int code;      // 状态代码
    private final String description;  // 状态描述

    CategoryStatusEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}